package com.demo.service;

import com.demo.entity.user.User;

import java.util.List;

public interface UserService {

    //查找
    List<User> findAll();

    User findUser( int id);

    User getUser( int id);

    User findByUserAndPass( String username, String password);

    //插入
    int insertUser(User user);

    int insertSelective(User user);

    //更新
    int updateByPrimaryKey(User user);

    int updateByPrimaryKeySelective(User user);

    //删除
    int deleteByPrimaryKey(Integer id);

}
